﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using SenetExperimentsRunner.Logic.Collections;

namespace SenetExperimentsRunner.Logic.Experiment
{
    class ExperimentList : AsyncBindingList<Experiment>
    {
        public ExperimentList() : base(null)
        {
            
        }
        public ExperimentList(ISynchronizeInvoke invoke) : base(invoke)
        {
        }

        public void RemoveAll(List<Experiment> experiments)
        {
            foreach (Experiment experiment in experiments)
            {
                this.Remove(experiment);
            }
        }

//        public void SaveToTextFile(string path, char seperationComma, string[] headers)
//        {
//            using (TextWriter writer = new StreamWriter(path, false))
//            {
//                if (headers != null)
//                {
//                    
//                }
//            }
//        }
//
//        private void WriteLine(TextWriter writer, char seperationComma, string[] line)
//        {
//            
//        }

    }
}
